package com.mopa.shopping.entidades;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "T_USUARIO")
@SequenceGenerator(name = "GEN_USUARIO_ID", sequenceName = "SEQ_USUARIO_ID", allocationSize = 1)
public class Usuario implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -898840804268168546L;
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "GEN_USUARIO_ID")
	@Column(name = "ID_USUARIO")
	private Integer id;
	
	@Column(name = "nm_login")
	private String login;
	
	@Column(name = "nm_senha")
	private String senha;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getSenha() {
		return senha;
	}

	public void setSenha(String senha) {
		this.senha = senha;
	}

}
